﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Presentacion/MasterPage/MasterPageBase.Master" AutoEventWireup="true" CodeBehind="InicioSistema.aspx.cs" Inherits="vudu.Presentacion.Vista.VU_15_Gestion_de_Acceso.Inicio" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style13
        {
            width: 240px;
        }
        .style19
        {
            width: 130px;
        }
        .style21
        {
            width: 150px;
            height: 21px;
        }
        .style22
        {
            width: 24px;
            height: 21px;
        }
        .style23
        {
            width: 563px;
            height: 21px;
        }
        .style25
        {
            width: 101px;
        }
        .style27
        {
            width: 563px;
        }
        .style28
        {
            width: 24px;
        }
        .style29
        {
            width: 131px;
        }
        .style30
        {
            width: 190px;
        }
    </style>
    <script>
        var nav4 = window.event ? true : false;
        function Presionar(evt) {
            var key = nav4 ? evt.wich : evt.keyCode;

            if (window.event) {
                key = evt.keyCode;
            }

            else if (evt.which) {
                key = evt.which;
            }

            if ((key != 8 && key != 9 && key < 97 && key != 127 && key != 37 && key != 39
            && key != 46 && key != 48 && key != 49 && key != 50 && key != 51 && key != 52
            && key != 53 && key != 54 && key != 55 && key != 56 && key != 57 && key != 50
            && key != 95 && key != 45 ) || (key > 122)) 
            {
                return false;
               
            }

            return true;
        }
        
        </script>

    </asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <form id="form1" runat="server" DefaultButton="BotonInicio" >
    <br />
    <br />
    <table >
        <tr>
            <td class="style21">
            </td>
            <td class="style22">
                </td>
            <td align="center" class="style23">
                <h1>
                <asp:Label ID="Label1" runat="server" Text="Inicio Sesión"  CssClass = "tituloGeneral"></asp:Label>
                </h1></td>
            <td class="style21">
            </td>
            <td class="style21">
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td class="style28">
            </td>
            <td align = "center" class="style27">
                <asp:Label ID="uxMensajeError" runat="server" Text="Label" 
                    CssClass = "transaccionFallida" Width="485px" Visible="False"></asp:Label>
            </td>
            <td class="style25">
            </td>
            <td class="style25">
            </td>
        </tr>
    </table>
    <br />
    <table>
    <tr>  
    <td colspan="4" style="width: 860px">
        <fieldset><legend>Entra a tu cuenta VUDU!</legend>
            <br />
            <table>
        <tr>
            <td class="style13">
            </td>
            <td align="left" class="style29">
                Usuario:  </td>
            <td class="style30">
                <asp:TextBox ID="uxNickname" runat="server" width="180px" MaxLength="37" onpaste="return false" onkeypress= "return Presionar(event);"></asp:TextBox>
            </td>
            <td class="style13">
                <asp:Label ID="uxDominio" runat="server" Text="@univ.vudu.com" Visible="True" ></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style13">
            </td>
            <td align="left" class="style29">
                Contraseña:  </td>
            <td class="style30">
                <asp:TextBox ID="uxPassword" runat="server" width="180px" TextMode="Password" onpaste="return false" onkeypress= "return Presionar(event);"
                    MaxLength="15"></asp:TextBox>
            </td>
            <td style="width: 250px">
            </td>
        </tr>
        <tr>
            <td class="style13">
                &nbsp;</td>
            <td class="style29">
                <asp:Label ID="Label2" runat="server" Text="Tipo de Usuario: "></asp:Label>
            </td>
            <td class="style30">
                <asp:DropDownList ID="uxTipoUsuario" runat="server" 
                    onselectedindexchanged="uxTipoUsuario_SelectedIndexChanged" 
                    AutoPostBack="True" Width="185">
                    <asp:ListItem Selected="True">Universidad</asp:ListItem>
                    <asp:ListItem>Escuela</asp:ListItem>
                    <asp:ListItem>Profesor</asp:ListItem>
                    <asp:ListItem>Estudiante</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
    </table>
            <br />
        </fieldset>

    </td>       
            
    </tr>
</table>
        <br />
    <table >
        <tr>
            <td style="width: 150px">
            </td>
            <td class="style19">
                &nbsp;</td>
            <td align="center" style="width: 300px">
                <asp:Button ID="BotonInicio" runat="server" Text="Aceptar" 
                    onclick="AutenticarUsuario" Height="30px" Width="65px"  CssClass="boton"/>
            </td>
            <td style="width: 150px">
            </td>
            <td style="width: 150px">
            </td>
        </tr>
    </table>
    <br />
    <br />
    <table>
            <tr>
            <td style="width: 350px">
                en caso de no estar registrado presiona <asp:Hyperlink runat="server" 
                    Text = "aqui" CssClass="miga" ForeColor="#0000CC" 
                    NavigateUrl="~/Presentacion/Vista/VU_14 Registrarse en el Sistema/RegistroSistema.aspx" />
            &nbsp;</td>
            <td align="right" style="width: 250px"></td>
            <td style="width: 250px" align="right">
                <br />
                </td>
        </tr>
    </table>
    </form>
</asp:Content>